Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anim speed #228

Merged
merged 12 commits into from
Dec 5, 2023
Merged

Anim speed #228

merged 12 commits into from
Dec 5, 2023

Conversation

klingbolt
Copy link
Contributor

@klingbolt klingbolt commented Nov 15, 2023

The protobin is not added here as it will be changed by #151

name="animation_speed",
xml_input_paths=["./inputs/xml_animation_speed"],
expected_output_xml_path="./expected_outputs/xml_animation_speed",
),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where are the proto testcases?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As mentioned in the top comment, the proto will be changed by #151. I didn't want to add an incorrect proto

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not just change the proto here? Now seems like as good of a time as any to avoid it being forgotten.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Full Diff
--- xml_converter/intigration_tests/expected_outputs/proto_animation_speed/markers.bin.textproto._old	2023-12-03 21:09:20.738595640 +0000
+++ xml_converter/intigration_tests/expected_outputs/proto_animation_speed/markers.bin.textproto._new	2023-12-03 21:09:20.746595627 +0000
@@ -0,0 +1,35 @@
+category {
+  name: "My Category"
+  trail {
+  }
+  trail {
+  }
+  trail {
+    animation_speed: 3.14
+  }
+  trail {
+    animation_speed: 123.456
+  }
+  trail {
+  }
+  trail {
+  }
+  trail {
+    animation_speed: 3.14
+  }
+  trail {
+    animation_speed: 123.456
+  }
+  trail {
+    animation_speed: -3.14
+  }
+  trail {
+    animation_speed: -123.456
+  }
+  trail {
+    animation_speed: -3.14
+  }
+  trail {
+    animation_speed: -123.456
+  }
+}

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Full Diff
--- xml_converter/intigration_tests/expected_outputs/proto_animation_speed/markers.bin.textproto._old	2023-12-03 21:10:27.535470994 +0000
+++ xml_converter/intigration_tests/expected_outputs/proto_animation_speed/markers.bin.textproto._new	2023-12-03 21:10:27.543471044 +0000
@@ -0,0 +1,35 @@
+category {
+  name: "My Category"
+  trail {
+  }
+  trail {
+  }
+  trail {
+    animation_speed: 3.14
+  }
+  trail {
+    animation_speed: 123.456
+  }
+  trail {
+  }
+  trail {
+  }
+  trail {
+    animation_speed: 3.14
+  }
+  trail {
+    animation_speed: 123.456
+  }
+  trail {
+    animation_speed: -3.14
+  }
+  trail {
+    animation_speed: -123.456
+  }
+  trail {
+    animation_speed: -3.14
+  }
+  trail {
+    animation_speed: -123.456
+  }
+}

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Full Diff
--- xml_converter/intigration_tests/expected_outputs/proto_animation_speed/markers.bin.textproto._old	2023-12-04 03:28:00.138085994 +0000
+++ xml_converter/intigration_tests/expected_outputs/proto_animation_speed/markers.bin.textproto._new	2023-12-04 03:28:00.146085948 +0000
@@ -0,0 +1,179 @@
+category {
+  name: "My Category"
+  trail {
+    map_id: 50
+    trail_data {
+      points_x: 1
+      points_x: 2
+      points_x: 3
+      points_y: 4
+      points_y: 5
+      points_y: 6
+      points_z: 7
+      points_z: 8
+      points_z: 9
+    }
+  }
+  trail {
+    map_id: 50
+    trail_data {
+      points_x: 1
+      points_x: 2
+      points_x: 3
+      points_y: 4
+      points_y: 5
+      points_y: 6
+      points_z: 7
+      points_z: 8
+      points_z: 9
+    }
+  }
+  trail {
+    map_id: 50
+    trail_data {
+      points_x: 1
+      points_x: 2
+      points_x: 3
+      points_y: 4
+      points_y: 5
+      points_y: 6
+      points_z: 7
+      points_z: 8
+      points_z: 9
+    }
+    animation_speed: 3.14
+  }
+  trail {
+    map_id: 50
+    trail_data {
+      points_x: 1
+      points_x: 2
+      points_x: 3
+      points_y: 4
+      points_y: 5
+      points_y: 6
+      points_z: 7
+      points_z: 8
+      points_z: 9
+    }
+    animation_speed: 123.456
+  }
+  trail {
+    map_id: 50
+    trail_data {
+      points_x: 1
+      points_x: 2
+      points_x: 3
+      points_y: 4
+      points_y: 5
+      points_y: 6
+      points_z: 7
+      points_z: 8
+      points_z: 9
+    }
+  }
+  trail {
+    map_id: 50
+    trail_data {
+      points_x: 1
+      points_x: 2
+      points_x: 3
+      points_y: 4
+      points_y: 5
+      points_y: 6
+      points_z: 7
+      points_z: 8
+      points_z: 9
+    }
+  }
+  trail {
+    map_id: 50
+    trail_data {
+      points_x: 1
+      points_x: 2
+      points_x: 3
+      points_y: 4
+      points_y: 5
+      points_y: 6
+      points_z: 7
+      points_z: 8
+      points_z: 9
+    }
+    animation_speed: 3.14
+  }
+  trail {
+    map_id: 50
+    trail_data {
+      points_x: 1
+      points_x: 2
+      points_x: 3
+      points_y: 4
+      points_y: 5
+      points_y: 6
+      points_z: 7
+      points_z: 8
+      points_z: 9
+    }
+    animation_speed: 123.456
+  }
+  trail {
+    map_id: 50
+    trail_data {
+      points_x: 1
+      points_x: 2
+      points_x: 3
+      points_y: 4
+      points_y: 5
+      points_y: 6
+      points_z: 7
+      points_z: 8
+      points_z: 9
+    }
+    animation_speed: -3.14
+  }
+  trail {
+    map_id: 50
+    trail_data {
+      points_x: 1
+      points_x: 2
+      points_x: 3
+      points_y: 4
+      points_y: 5
+      points_y: 6
+      points_z: 7
+      points_z: 8
+      points_z: 9
+    }
+    animation_speed: -123.456
+  }
+  trail {
+    map_id: 50
+    trail_data {
+      points_x: 1
+      points_x: 2
+      points_x: 3
+      points_y: 4
+      points_y: 5
+      points_y: 6
+      points_z: 7
+      points_z: 8
+      points_z: 9
+    }
+    animation_speed: -3.14
+  }
+  trail {
+    map_id: 50
+    trail_data {
+      points_x: 1
+      points_x: 2
+      points_x: 3
+      points_y: 4
+      points_y: 5
+      points_y: 6
+      points_z: 7
+      points_z: 8
+      points_z: 9
+    }
+    animation_speed: -123.456
+  }
+}

@klingbolt
Copy link
Contributor Author

As discussed, I am going to change the default to 0

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Full Diff
--- xml_converter/intigration_tests/expected_outputs/proto_animation_speed/markers.bin.textproto._old	2023-12-05 02:08:49.831166946 +0000
+++ xml_converter/intigration_tests/expected_outputs/proto_animation_speed/markers.bin.textproto._new	2023-12-05 02:08:49.839166935 +0000
@@ -0,0 +1,181 @@
+category {
+  name: "My Category"
+  trail {
+    map_id: 50
+    trail_data {
+      points_x: 1
+      points_x: 2
+      points_x: 3
+      points_y: 4
+      points_y: 5
+      points_y: 6
+      points_z: 7
+      points_z: 8
+      points_z: 9
+    }
+  }
+  trail {
+    map_id: 50
+    trail_data {
+      points_x: 1
+      points_x: 2
+      points_x: 3
+      points_y: 4
+      points_y: 5
+      points_y: 6
+      points_z: 7
+      points_z: 8
+      points_z: 9
+    }
+    animation_speed: 1
+  }
+  trail {
+    map_id: 50
+    trail_data {
+      points_x: 1
+      points_x: 2
+      points_x: 3
+      points_y: 4
+      points_y: 5
+      points_y: 6
+      points_z: 7
+      points_z: 8
+      points_z: 9
+    }
+    animation_speed: 3.14
+  }
+  trail {
+    map_id: 50
+    trail_data {
+      points_x: 1
+      points_x: 2
+      points_x: 3
+      points_y: 4
+      points_y: 5
+      points_y: 6
+      points_z: 7
+      points_z: 8
+      points_z: 9
+    }
+    animation_speed: 123.456
+  }
+  trail {
+    map_id: 50
+    trail_data {
+      points_x: 1
+      points_x: 2
+      points_x: 3
+      points_y: 4
+      points_y: 5
+      points_y: 6
+      points_z: 7
+      points_z: 8
+      points_z: 9
+    }
+  }
+  trail {
+    map_id: 50
+    trail_data {
+      points_x: 1
+      points_x: 2
+      points_x: 3
+      points_y: 4
+      points_y: 5
+      points_y: 6
+      points_z: 7
+      points_z: 8
+      points_z: 9
+    }
+    animation_speed: 1
+  }
+  trail {
+    map_id: 50
+    trail_data {
+      points_x: 1
+      points_x: 2
+      points_x: 3
+      points_y: 4
+      points_y: 5
+      points_y: 6
+      points_z: 7
+      points_z: 8
+      points_z: 9
+    }
+    animation_speed: 3.14
+  }
+  trail {
+    map_id: 50
+    trail_data {
+      points_x: 1
+      points_x: 2
+      points_x: 3
+      points_y: 4
+      points_y: 5
+      points_y: 6
+      points_z: 7
+      points_z: 8
+      points_z: 9
+    }
+    animation_speed: 123.456
+  }
+  trail {
+    map_id: 50
+    trail_data {
+      points_x: 1
+      points_x: 2
+      points_x: 3
+      points_y: 4
+      points_y: 5
+      points_y: 6
+      points_z: 7
+      points_z: 8
+      points_z: 9
+    }
+    animation_speed: -3.14
+  }
+  trail {
+    map_id: 50
+    trail_data {
+      points_x: 1
+      points_x: 2
+      points_x: 3
+      points_y: 4
+      points_y: 5
+      points_y: 6
+      points_z: 7
+      points_z: 8
+      points_z: 9
+    }
+    animation_speed: -123.456
+  }
+  trail {
+    map_id: 50
+    trail_data {
+      points_x: 1
+      points_x: 2
+      points_x: 3
+      points_y: 4
+      points_y: 5
+      points_y: 6
+      points_z: 7
+      points_z: 8
+      points_z: 9
+    }
+    animation_speed: -3.14
+  }
+  trail {
+    map_id: 50
+    trail_data {
+      points_x: 1
+      points_x: 2
+      points_x: 3
+      points_y: 4
+      points_y: 5
+      points_y: 6
+      points_z: 7
+      points_z: 8
+      points_z: 9
+    }
+    animation_speed: -123.456
+  }
+}

@AsherGlick AsherGlick merged commit c3104c7 into AsherGlick:xml_converter Dec 5, 2023
7 checks passed
@klingbolt klingbolt deleted the anim_speed branch December 9, 2023 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants